Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/save current setting #124

Closed

Conversation

MeshkatShB
Copy link
Contributor

With this PR, you can now Load & Run config from a file.

  • After using the agent for the first time by Run Agent button, the desired config would be saved in a .config.pkl file.
  • You can see your config in Agent Settings by clicking on Load Saved Config to see if it matches your config.
  • Load & Run Config button in Run Agent Tab, will simply run the agent, BUT based on your previous configs!

Sample Output (Agent Settings Tab):

image

Sample Output (Run Agent Tab):

image

Note:

If you want to update your config, you need to simply set your desired settings once again in the WebUI (just like the first time) and then click on Run Agent in order to update your settings.

Fixes #120

@vvincent1234
Copy link
Contributor

Will it update the values of every setting on WebUI after loading config?

@MeshkatShB
Copy link
Contributor Author

Will it update the values of every setting on WebUI after loading config?

It does but it won't show the value on start (only visually because the values are loaded from default values set in gr.TextBox()). If you click on Load & Run Config, the agent will run with the previous configs but visually it doesn't change the values. At the back, it uses the .config.pkl file.

@warmshao
Copy link
Collaborator

Is it possible to update the values instead of only showing the values in TextBox?

@MeshkatShB
Copy link
Contributor Author

Is it possible to update the values instead of only showing the values in TextBox?

Yeah, it's feasible, but it requires some modifications in the code, such as the create_ui() and main() functions.

@MeshkatShB
Copy link
Contributor Author

I am doing it the other way, so even in startup, you can see your preferred config! next PR

@MeshkatShB MeshkatShB closed this Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No save button
3 participants